<cfcomponent>
	<cffunction name="geterrors" access="public" returntype="query">
		<cfargument name="isresolved" type="string" required="no" default="0">
        <cfquery name = "qerrorlog" datasource="#request.dsn#">
        SELECT * FROM core_errorlog
        WHERE resolved = <cfqueryparam value="#isresolved#" cfsqltype="cf_sql_integer">
        </cfquery>
		<cfreturn qerrorlog>
	</cffunction>
	<cffunction name="geterror" access="public" returntype="query">
		<cfargument name="errorid" type="string" required="yes" default="0">
        <cfquery name = "qerror" datasource="#request.dsn#">
        SELECT * FROM core_errorlog
        WHERE id = <cfqueryparam value="#errorid#" cfsqltype="cf_sql_integer">
        </cfquery>
		<cfreturn qerror>
	</cffunction>    
</cfcomponent>